import com.ynny.controller.UserController;
import com.ynny.student.User;
import org.junit.jupiter.api.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test {
    @Test
    public void test(){
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("Lifecycle.xml");
        UserController userController = context.getBean("user", UserController.class);
        String info = userController.toUser();
        System.out.println(info);
    }
}
